
package com.probiz.estore.system.service;

import java.math.BigDecimal;
import java.util.List;

import com.probiz.estore.common.model.system.ShippingRate;
import com.probiz.estore.core.service.GenericManager;

/**
 * ShippingRate Business Delegate (Proxy) Interface to handle communication
 * between web and persistence layer. Developer introduced interfaces should be
 * declared here. Won't get overwritten.
 * 
 */
public interface ShippingRateManager extends GenericManager<ShippingRate> {

	/**
	 * 根据地区id搜索运输费率
	 * @param regionId
	 * @return
	 */
	public List<ShippingRate> getShippingRateByRegionId(Integer regionId);
	/**
	 * 根据地区id搜索不同运输方式对应的最佳运输费率
	 * @param regionId
	 * @return
	 */
	public List<ShippingRate> getDifferentShipMethodRatesByRegionId(Integer regionId);
	/**
	 * 根据地区id和是否支持货到付款搜索不同运输方式对应的最佳运输费率
	 * @param isCod
	 * @param regionId
	 * @return
	 */
	public List<ShippingRate> getDifferentShipMethodRatesByRegionId(Boolean isCod, Integer regionId);

	
	public BigDecimal getShippingExpence(Integer shippingRateId,BigDecimal weight);
}
